package cn.tedu.blackhorse.mapper;

import cn.tedu.blackhorse.pojo.entity.Order;
import cn.tedu.blackhorse.pojo.entity.Permission;
import cn.tedu.blackhorse.pojo.vo.AdminStandardVO;
import cn.tedu.blackhorse.pojo.vo.PermissionListItemVO;
import cn.tedu.blackhorse.pojo.vo.PermissionStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PermissionMapper {
    int insert(Permission permission);

    int deleteById(Long id);

    int deleteByIds(List<Long> ids);

    int updateById(Permission permission);

    int count();

    List<PermissionListItemVO> list();

    PermissionStandardVO getById(Long id);

    int countByName(String name);
}
